package cn.ww.teach.knowledge.design.observe;

/**
 * Created by Wangwang on 2017/12/13.
 */
public class SendMessage implements Subscribe {
    @Override
    public void goLoginEvent(User user) {
        System.out.println(" send message to user success");
    }

    public SendMessage(LoginHandler handler) {
        handler.toSub(this);
    }
}
